glGetPixelMapfv, glGetPixelMapuiv, glGetPixelMapusv

[New - Windows 95, OEM Service Release 2]

These functions return the specified pixel map.

void glGetPixelMapfv(

    GLenum map,

 

    GLfloat * values

 

   );

 

 

void glGetPixelMapuiv(

    GLenum map,

 

    GLuint * values

 

   );

 

 

void glGetPixelMapusv(

    GLenum map,

 

    GLushort * values

 

   );

 

 

Parameters

map

The name of the pixel map to return. Accepted values are GL_PIXEL_MAP_I_TO_I, GL_PIXEL_MAP_S_TO_S, GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_B, GL_PIXEL_MAP_I_TO_A, GL_PIXEL_MAP_R_TO_R, GL_PIXEL_MAP_G_TO_G, GL_PIXEL_MAP_B_TO_B, and GL_PIXEL_MAP_A_TO_A.

values

Returns the pixel map contents.

 

Remarks

See glPixelMap113L0UI for a description of the acceptable values for the map parameter. The glGetPixelMap function returns in values the contents of the pixel map specified in map. Use pixel maps during the execution of glReadPixels76DK080, glDrawPixelsHZW_GG, glCopyPixels173H6L, glTexImage1D1HIX0MK, and glTexImage2D1HIX0NK to map color indexes, stencil indexes, color components, and depth components to other values.

Unsigned integer values, if requested, are linearly mapped from the internal fixed or floating-point representation such that 1.0 maps to the largest representable integer value, and 0.0 maps to zero. Return unsigned integer values are undefined if the map value was not in the range [0,1].

To determine the required size of map, call glGet8KNKTW with the appropriate symbolic constant.

If an error is generated, no change is made to the contents of values.

The following functions retrieve information related to glGetPixelMap:

glGet with argument GL_PIXEL_MAP_I_TO_I_SIZE

glGet with argument GL_PIXEL_MAP_S_TO_S_SIZE

glGet with argument GL_PIXEL_MAP_I_TO_R_SIZE

glGet with argument GL_PIXEL_MAP_I_TO_G_SIZE

glGet with argument GL_PIXEL_MAP_I_TO_B_SIZE

glGet with argument GL_PIXEL_MAP_I_TO_A_SIZE

glGet with argument GL_PIXEL_MAP_R_TO_R_SIZE

glGet with argument GL_PIXEL_MAP_G_TO_G_SIZE

glGet with argument GL_PIXEL_MAP_B_TO_B_SIZE

glGet with argument GL_PIXEL_MAP_A_TO_A_SIZE

glGet with argument GL_MAX_PIXEL_MAP_TABLE

 

Error Codes

The following are the error codes generated and their conditions.

Error Code

Condition

GL_INVALID_ENUM

map was not an accepted value.

GL_INVALID_OPERATION

glGetPixelMap was called between a call to glBegin and the corresponding call to glEnd.

 

See Also

glBegin, glCopyPixels, glDrawPixels, glEnd, glGet, glPixelMap, glPixelTransfer, glReadPixels, glTexImage1D, glTexImage2D